<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Migrating from Ibator</title>
  <link rel="stylesheet" type="text/css" href="mbgstyle.css" />
</head>
<body>
<h1>Migrating from Ibator</h1>
<p>This page details changes between MyBatis Generator (MBG)
and Ibator.  For most users, the changes should be simple.
If you extended any of Ibator's classes to supply custom implementations
of code generators or the Java type resolver, you will need to rework
those custom classes.</p>
<p>Changes
are described assuming you are using XML configuration for MBG.  If you
are using Java based configuration, then the changes are still required
and should be easy to deduce from the description of the XML changes.</p>
<p><b>Important Note:</b> MBG will correctly parse older Ibator configuration files, so no change is actually
required.  However, new features will only be implemented in configuration files
that conform to the MyBatis Generator DTD.</p>
<h2>Required for Some Users</h2>
<ul>
  <li>The DTD has changed.  The new DOCTYPE should be
      <pre>

&lt;!DOCTYPE generatorConfiguration
  PUBLIC &quot;-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN&quot;
  &quot;http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd&quot;&gt;
    </pre>
  </li>
  <li>MyBatis3 is now the default target runtime.</li>
  <li>The <code>&lt;ibatorConfiguration&gt;</code> element is renamed to
   <code>&lt;generatorConfiguration&gt;</code></li>
  <li>The <code>&lt;ibatorContext&gt;</code> element is renamed to
   <code>&lt;context&gt;</code></li>
  <li>The <code>&lt;ibatorPlugin&gt;</code> element is renamed to
   <code>&lt;plugin&gt;</code></li>
  <li>The <code>&lt;daoGenerator&gt;</code> element is renamed to
   <code>&lt;javaClientGenerator&gt;</code></li>
  <li>If you implemented a plugin, the <code>daoXXX</code> methods have been renamed
    to <code>clientXXX</code>.</li>
</ul>
</body>
</html>